﻿<html>
<head>
    <title>Global Transport Secure Form Sample HPF Implementation</title>
    <link rel="shortcut icon" href="http://dev.gtpaysecure.com/images/favicon.ico" type="image/x-icon" />
    <script>
        function completeCREPayment(param) {
            alert('Payment Processed');
        }
        function cancelCREPayment() {
            alert('Payment Cancelled');
        }
        function whatCVV2() {
            alert('The 3 numbers on the back of your card');
        }
        function creHandleDetailErrors(errorCode, gatewayCode, gatewayMessage) {
            errorCode.replace("310", "Credit card number left blank.\n");
            errorCode.replace("370", "Expiration date invalid.\n");
            errorCode.replace("310|315", "Credit card number did not pass Mod10.\n");
            alert('Detailed Error Handler\nError Code: ' + errorCode + ', ' + gatewayCode + ', ' + gatewayMessage + '.');
        }
    </script>
</head>
<body>
    <div>
        <iframe id="secureFrame" width="500" height="400" class="secureFrame" src="@Html.Raw(ViewBag.url)"></iframe>
    </div>
</body>
</html>